package org.fight.server.example;

import java.io.IOException;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class DubboClient {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
				new String[] { "applicationContext-client.xml" });
		context.start();

		IProduct productService = (IProduct) context.getBean("productService");
		String hello = productService.getProductName();
		System.out.println(hello);

		try {
			System.in.read();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
